<!DOCTYPE html>
<html>
<script language="JavaScript">
	var bb= function(){
			window.android.jsSaytoJava("hello java");
				alert(hello java);
		}
<!--		var aa = function(){
			//所有图片地址的变量
			var imageList = "";
			//1. 找到标签为img的元素的集合
			var imgs = document.getElementsByTagName("img");
			//2. 遍历数组,为img元素添加点击事件
			for (var i = 0;i<imgs.length;i++) {
				var img = imgs[i];
				imageList = imageList+img.src+";";
				img.onclick = function(){
					//传递当前的src给java
					//bindJs:这个是java代码中定义的name
					//openImg:是桥梁类定义的方法
					window.bindJs.openImg(this.src);
					//打印点击img对象的src属性
//					alert(this.src);
				}

			}
			//传输所有的src给java,其中"bindJs"是在java中定义的
			window.bindJs.openImgList(imageList);
//			alert(imageList);
		}-->

</script>

<head>
    <meta charset="utf-8">
    <title></title>
</head>

<body onload="aa()">
<button type="button" onclick="bb()">say to java</button>
<p> heima 47</p>
<p>
    <img src="http://imglf1.ph.126.net/jLF2qlSGLhOG5kRdcgID4Q==/2392818777035193991.jpg"/>
    <img src="http://imglf2.ph.126.net/3v-6UhjdHtrz_VtOHPSVvA==/1056375587612514503.jpg"/>
    <img src="http://imglf1.ph.126.net/jLF2qlSGLhOG5kRdcgID4Q==/2392818777035193991.jpg"/>
</p>
</body>
</html>
